package com.cm.caseManagement.dao;

import com.cm.caseManagement.pojo.entity.CmCostExpense;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 费用报销Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmCostExpenseMapper
{
    /**
     * 查询费用报销
     *
     * @param id 费用报销主键
     * @return 费用报销
     */
    public CmCostExpense selectCmCostExpenseById(Long id);

    /**
     * 查询费用报销列表
     *
     * @param cmCostExpense 费用报销
     * @return 费用报销集合
     */
    public List<CmCostExpense> selectCmCostExpenseList(CmCostExpense cmCostExpense);

    /**
     * 新增费用报销
     *
     * @param cmCostExpense 费用报销
     * @return 结果
     */
    public int insertCmCostExpense(CmCostExpense cmCostExpense);

    /**
     * 修改费用报销
     *
     * @param cmCostExpense 费用报销
     * @return 结果
     */
    public int updateCmCostExpense(CmCostExpense cmCostExpense);

    /**
     * 删除费用报销
     *
     * @param id 费用报销主键
     * @return 结果
     */
    public int deleteCmCostExpenseById(Long id);

    /**
     * 批量删除费用报销
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmCostExpenseByIds(Long[] ids);
}
